/**
 * mysql connect
 * @type {[type]}
 */
const config = require('config'),
	db = require('dao/orm');

let conn = db.create(config.dbs.modelMall);

conn.sync().then(function() {
	console.log('conn.sync success');
}).catch(function(error) {
	console.log('conn.sync error \n', error);
	process.exit(-1);
})

module.exports = conn;